﻿using System;
using System.Collections.Generic;
using DotMail.Commons.DAO;

namespace DotMail.Commons.Interfaces
{
    public delegate List<ListMessage> getMessageList(int userID, int folderID);
    public delegate List<Folder> getFolderList(int userID);
    public delegate Message getMessage(int messageID);
    public delegate User login(string userName, string password, bool lockBit);
    public delegate bool logout(int userID);
    public delegate bool changeMessageAttributes(int messageID, MessageAttributes attribs);
    public delegate MessageAttributes getMessageAttributes(int messageID);
    public delegate bool copyMessage(int messageID, int sourceFolderID, int destFolderID);
    public delegate bool deleteMessage(int messageID);
    public delegate bool createFolder(int parentFolderID);
    public delegate bool changeFolder(Folder folder);
}